<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
        <v-child>
            <!--组件标签内部的代码是父组件准备传递给子组件的标签-->
        </v-child>
    </div>
</body>
<script src="./js/vue.js"></script>
<script>
    new Vue({
        el:"#app",
        components:{
            "v-child":{
                template:`<div>
                            <span>v-child</span>
                            <slot>
                                <span>default</span>
                            </slot>
                        </div>`
            }
        }
    })
</script>
</html>